<template>
	<h2>父组件</h2>
	<!-- num：子组件声明的自定义属性 -->
	<!-- 静态绑定 -->
	<!-- <Son num="1"></Son> -->
	<!-- 要传递变量，得使用v-bind指令：动态绑定 -->
	<!-- <Son :num="num"></Son> -->
	<hr />
	<Son :num="num" str='Hello Vue' aaa="123"></Son>
</template>

<script setup>
import Son from './components/Son.vue'
import { ref } from 'vue'
const num = ref(100)
setTimeout(() => { num.value = 200 }, 3000)
</script>

<style scoped>
	
</style>